/*
 * @(#)PagerConfigInfos.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config;

import java.util.Hashtable;
import java.util.Map;

/**
 * {@link PagerConfigInfo} 리스트
 *
 * @author Web Platform Development Team
 */
public class PagerConfigInfos {
    /**
     * {@link PagerConfigInfo}를 저장하기 위한 {@link Map}
     */
    private static Map<String, PagerConfigInfo> map = new Hashtable<String, PagerConfigInfo>();

    /**
     * {@link PagerConfigInfo}를 추가한다.
     *
     * @param type            the pager type
     * @param pagerConfigInfo the PagerConfigInfo
     */
    public static void put(String type, PagerConfigInfo pagerConfigInfo) {
        map.put(type, pagerConfigInfo);
    }

    /**
     * {@link PagerConfigInfo}를 반환한다.
     *
     * @param type the pager type name
     * @return PagerConfigInfo the PagerConfigInfo for type
     */
    public static PagerConfigInfo get(String type) {
        return map.get(type);
    }

    /**
     * {@link PagerConfigInfo}를 초기화한다.
     */
    public static void clear() {
        map.clear();
    }
}